function gSAM.Commands.Me(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_BANNED then
		for k,v in pairs(player.GetAll()) do
			v:ChatPrint(ply:Name().." "..string.Implode(" ",args))
		end
	end
end
gSAM.RegisterCommand("Me","me",gSAM.Commands.Me,GSAM_GROUP_BANNED)

function gSAM.Commands.Hint(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_RESPECTED then
		local ply2 = gSAM.GEtPlayer(args[1])
		for k,v in pairs(player.GetAll()) do
			if v == ply2 then
				table.remove(args,1)
				gSAM.HintPlayer(v,string.Implode(" ",args))
			end
		end
	end
end
gSAM.RegisterCommand("Hint","hint",gSAM.Commands.Hint,GSAM_GROUP_RESPECTED)

function gSAM.Commands.HintAll(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_RESPECTED then
		for k,v in pairs(player.GetAll()) do
			gSAM.HintPlayer(v,string.Implode(" ",args))
		end
	end
end
gSAM.RegisterCommand("HintAll","hinta",gSAM.Commands.HintAll,GSAM_GROUP_RESPECTED)

function gSAM.Commands.Chat(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_RESPECTED then
		local ply2 = gSAM.GEtPlayer(args[1])
		for k,v in pairs(player.GetAll()) do
			if v == ply2 then
				table.remove(args,1)
				v:ChatPrint(string.Implode(" ",args))
			end
		end
	end
end
gSAM.RegisterCommand("Chat","chat",gSAM.Commands.Chat,GSAM_GROUP_RESPECTED)

function gSAM.Commands.ChatAll(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_RESPECTED then
		for k,v in pairs(player.GetAll()) do
			v:ChatPrint(string.Implode(" ",args))
		end
	end
end
gSAM.RegisterCommand("ChatAll","chata",gSAM.Commands.ChatAll,GSAM_GROUP_RESPECTED)

function gSAM.Commands.Center(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_RESPECTED then
		local ply2 = gSAM.GEtPlayer(args[1])
		for k,v in pairs(player.GetAll()) do
			if v == ply2 then
				table.remove(args,1)
				v:ConCommand("gsam_player_center_message "..string.Implode(" ",args))
			end
		end
	end
end
gSAM.RegisterCommand("Center","cent",gSAM.Commands.Center,GSAM_GROUP_RESPECTED)

function gSAM.Commands.CenterAll(ply,cmd,args)
	if gSAM.GetPlayerGroup(ply) <= GSAM_GROUP_RESPECTED then
		for k,v in pairs(player.GetAll()) do
			v:ConCommand("gsam_player_center_message "..string.Implode(" ",args))
		end
	end
end
gSAM.RegisterCommand("CenterAll","centa",gSAM.Commands.CenterAll,GSAM_GROUP_RESPECTED)
